//
//  BaseNavViewController.swift
//  EduManage
//
//  Created by design02 on 16/12/13.
//  Copyright © 2016年 wsl. All rights reserved.
//

import UIKit

class BaseNavViewController: UINavigationController {

    
    //1212 - 在MainTabbarViewController 中初始化将各个VC加到tabbar中
    override func viewDidLoad() {
        super.viewDidLoad()
        //设置各个VC的标题的属性，在VC中为->self.navigationItem.title = "办公管家"  而不能直接使用self.title = "办公管家"
        
        self.tabBarItem.setTitleTextAttributes([NSForegroundColorAttributeName: UIColor(hexString: "4e92df", alpha: 1)], for: UIControlState.selected)
        
        
        self.navigationBar.barTintColor = barColor
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
